import request from '../../utils/request'

// 更新用户信息
const updateUsers = data => {
  return request({
    url: '/api/users',
    method: 'POST',
    data
  })
}
//获取用户信息
const getUsers= () => {
  return request({
    url: '/api/users',
    method: 'GET'
  })
}
//系统服务-获取客服
const getService = () => {
  return request({
    url: '/api/services/service',
    method: 'GET'
  })
}
//系统服务-获取微信
const getWechat = () => {
  return request({
    url: '/api/services/wechat',
    method: 'GET'
  })
}

//绑定手机号
const binding = (data) => {
  return request({
    url: '/api/decrypt',
    method: 'post',
    data:data
  })
}
module.exports = {
  updateUsers,
  getUsers,
  getService,
  getWechat,
  binding
}